package com.jiazhong.example.project.bookstore.front.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiazhong.example.project.bookstore.commons.bean.Book;
import com.jiazhong.example.project.bookstore.commons.util.JsonResult;
import org.springframework.stereotype.Service;

@Service
public interface BookService extends IService<Book> {

    JsonResult findLower(int number);

    JsonResult findFresh(int number);

    JsonResult findFreshAll(int page,String token);

    JsonResult findLowerAll(int page,String token);

    JsonResult findBookByCategoryId(int page, String categoryId,String token);

    JsonResult findBookByBookname(int page, String bookname,String token);

    JsonResult findBookByBooknameAndFresh(int page, String bookname,String token);

    JsonResult findBookByBooknameAndLower(int page, String bookname,String token);

    JsonResult findBookByBooknameAndCategoryId(int page, String bookname, String categoryId,String token);

}
